Extends AudioNode.
This interface represents an audio source from an in-memory audio asset in an AudioBuffer. It is useful for playing short audio assets which require a high degree of scheduling flexibility (can playback in rhythmically perfect ways). The start() method is used to schedule when sound playback will happen.
| Properties | |
|---|---|
| AudioBuffer? | buffer |
| boolean | loop |
| double | loopEnd |
| double | loopStart |
| EventHandler | onended |
| AudioParam | playbackRate |
| Operations | |
|---|---|
| void | start(optional double when, optional double offset, optional double duration) |
| void | stop(optional double when) |